﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="CDReport.aspx.cs" Inherits="CDReport"
    MasterPageFile="~/Default.master" EnableViewState="false" %>

<%@ Register Assembly="DevExpress.Web.v9.2, Version=9.2.9.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxCallback" TagPrefix="dxcb" %>
<%@ Register Assembly="DevExpress.Web.ASPxGridView.v9.2, Version=9.2.9.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dxwgv" %>
<asp:Content ContentPlaceHolderID="head" ID="hd" runat="server" EnableViewState="false">

    <script src="CDReport.js" type="text/javascript"></script>
    <script src="js/LOV.js" type="text/javascript"></script> 
    <script src="js/Datetimepicker.js" type="text/javascript"></script>
    
    <%--

    <script src="js/FileUpload.js" type="text/javascript"></script>
    

    
    <!-- TinyMCE -->

    <script src="js/tiny_mce.js" type="text/javascript"></script>

    <!-- /TinyMCE -->--%>
    <link href="CDReport.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ContentPlaceHolderID="leftMenu" ID="leftnav" runat="server" EnableViewState="false">
<% Response.Write(GenerateSideMenu()); %>

</asp:Content>
<asp:Content ContentPlaceHolderID="content" ID="ctnCC" runat="server"
    EnableViewState="false">
    <div id="pnlCDTitle"></div>
    <div id="pnlCD" runat="server"></div>
    <%
        if (String.IsNullOrEmpty(m_sxMode))
        {

   %>
      
    <fieldset class="m_fs_border" id="fs_CDReport">
        <legend><a class="lnk" href="javascript:toggle('CDReport');">Report By Company Class</a>
        </legend>
        <dl class="m_fs">
            <div id="div_CDReport">
            <%
                Response.Write(CDManager.BuildTable_CDReportByClass(m_dtReport));
            %>
            </div>
        </dl>
    </fieldset>
    <fieldset class="m_fs_border" id="fs_CDReportCAR">
        <legend><a class="lnk" href="javascript:toggle('CDReportCAR');">Report By CAR</a>
        </legend>
        <dl class="m_fs">
            <div id="div_CDReportCAR">
            <dxwgv:ASPxGridView ID="dgReportByCAR" KeyFieldName="EMPLOYEE_NO" ClientInstanceName="dgReportByCAR_c"
                runat="server" AutoGenerateColumns="false" Width="100%" Font-Size="Small">
                <Styles Header-HorizontalAlign="Center" AlternatingRow-Enabled="True" Cell-Wrap="true" Cell-Font-Size="Smaller" Header-Wrap="true"
                    Header-Font-Size="Smaller" Header-Font-Bold="true">
                    <Header Wrap="True" Font-Size="Smaller" Font-Bold="True">
                    </Header>
                    <AlternatingRow Enabled="True">
                    </AlternatingRow>
                    <Cell Wrap="True" Font-Size="Smaller">
                    </Cell>
                </Styles>
                <SettingsPager PageSize="10">
                </SettingsPager>
                <Settings ShowFilterBar="Visible" ShowFilterRow="true" ShowFilterRowMenu="true" ShowHorizontalScrollBar="true" />
                <SettingsBehavior AllowSort="true" />
                <Columns>
                    <dxwgv:GridViewDataTextColumn FieldName="EMPLOYEE_NO" Name="EMPLOYEE_NO" Caption="EMPLOYEE NO" >
                    </dxwgv:GridViewDataTextColumn>
                    <dxwgv:GridViewDataTextColumn FieldName="EMPLOYEE_NAME" Name="EMPLOYEE_NAME"
                     Caption="EMPLOYEE NAME">
                        <DataItemTemplate>
                        <%# GridColumnManager.GetCARLinkColumn(Eval("EMPLOYEE_NO").ToString(), Eval("EMPLOYEE_NAME").ToString())%>
                        </DataItemTemplate>
                    </dxwgv:GridViewDataTextColumn>
                    <dxwgv:GridViewDataTextColumn FieldName="JUMLAH_PELANGGAN" Name="JUMLAH_PELANGGAN"
                     Caption="JUMLAH PELANGGAN" >
                    </dxwgv:GridViewDataTextColumn>
                    <dxwgv:GridViewDataTextColumn FieldName="JUMLAH_KONFIG" Name="JUMLAH_KONFIG" 
                    Caption="JUMLAH KONFIG" >
                    </dxwgv:GridViewDataTextColumn>
                    <dxwgv:GridViewDataTextColumn FieldName="PERSEN_KONFIG" Name="PERSEN_KONFIG" 
                    Caption="PERSEN KONFIG" >
                    </dxwgv:GridViewDataTextColumn>
                    <dxwgv:GridViewDataTextColumn FieldName="JUMLAH_DATEK" Name="JUMLAH_DATEK" 
                    Caption="JUMLAH DATEK" >
                    </dxwgv:GridViewDataTextColumn>
                    <dxwgv:GridViewDataTextColumn FieldName="PERSEN_DATEK" Name="PERSEN_DATEK" 
                    Caption="PERSEN DATEK" >
                    </dxwgv:GridViewDataTextColumn> 
					<dxwgv:GridViewDataTextColumn FieldName="JUMLAH_EVAL" Name="JUMLAH_EVAL" 
                    Caption="JUMLAH EVAL" >
                    </dxwgv:GridViewDataTextColumn>
                    <dxwgv:GridViewDataTextColumn FieldName="PERSEN_EVAL" Name="PERSEN_EVAL" 
                    Caption="PERSEN EVAL" >
                    </dxwgv:GridViewDataTextColumn>
                </Columns>
            </dxwgv:ASPxGridView>
            </div>
        </dl>
    </fieldset>
    
    <%  }
        else
        {
    %>
    
    <fieldset class="m_fs_border" id="fs_CDReportMode">
        <legend><a class="lnk" href="javascript:toggle('CDReportMode');">
        Report By <%Response.Write(m_sxClass + " - " + m_sxType); %></a>
        </legend>
        <dl class="m_fs">
            <div id="div_CDReportMode">
            <dxwgv:ASPxGridView ID="dgReportByMode" KeyFieldName="CUSTOMER_ID" ClientInstanceName="dgReportByMode_c"
                runat="server" AutoGenerateColumns="false" Width="100%" Font-Size="Small">
                <Styles Header-HorizontalAlign="Center" AlternatingRow-Enabled="True" Cell-Wrap="true" Cell-Font-Size="Smaller" Header-Wrap="true"
                    Header-Font-Size="Smaller" Header-Font-Bold="true">
                    <Header Wrap="True" Font-Size="Smaller" Font-Bold="True">
                    </Header>
                    <AlternatingRow Enabled="True">
                    </AlternatingRow>
                    <Cell Wrap="True" Font-Size="Smaller">
                    </Cell>
                </Styles>
                <SettingsPager PageSize="10">
                </SettingsPager>
                <Settings ShowFilterBar="Visible" ShowFilterRow="true" ShowFilterRowMenu="true" ShowHorizontalScrollBar="true" />
                <SettingsBehavior AllowSort="true" />
                <Columns>
                    <dxwgv:GridViewDataTextColumn FieldName="CUSTOMER_ID" Name="CUSTOMER_ID" Caption="CUSTOMER ID" >
                    </dxwgv:GridViewDataTextColumn>
                    <dxwgv:GridViewDataTextColumn FieldName="COMPANY_NAME" Name="COMPANY_NAME"
                     Caption="COMPANY NAME">
                        <DataItemTemplate>
                        <%# GridColumnManager.GetCompanyLinkColumn(Eval("CUSTOMER_ID").ToString(), Eval("COMPANY_NAME").ToString())%>
                        </DataItemTemplate>
                    </dxwgv:GridViewDataTextColumn>
                    <dxwgv:GridViewDataTextColumn FieldName="CAR" Name="CAR"
                     Caption="CAR">
                        <DataItemTemplate>
                        <%# GridColumnManager.GetCARLinkColumn(Eval("EMPLOYEE_NO").ToString(), Eval("CAR").ToString())%>
                        </DataItemTemplate>
                    </dxwgv:GridViewDataTextColumn>
                    <dxwgv:GridViewDataTextColumn FieldName="COMPANY_CLASS" Name="COMPANY_CLASS"
                     Caption="CLASS">
                    </dxwgv:GridViewDataTextColumn>
                    <dxwgv:GridViewDataTextColumn FieldName="NOTE" Name="NOTE" 
                    Caption="NOTE" >
                    </dxwgv:GridViewDataTextColumn>
                    <dxwgv:GridViewDataTextColumn FieldName="INFO" Name="INFO" 
                    Caption="INFO">
                    </dxwgv:GridViewDataTextColumn>
                    <dxwgv:GridViewDataTextColumn FieldName="FILENAME" Name="FILENAME" 
                    Caption="FILENAME" >
                        <DataItemTemplate>
                        <%# GridColumnManager.GetDownloadLinkColumn(Eval("FILE_ID").ToString(), Eval("FILENAME").ToString())%>
                        </DataItemTemplate>
                    </dxwgv:GridViewDataTextColumn>
                </Columns>
            </dxwgv:ASPxGridView>
            <a id="a_CDReportMode" href="CDReport.aspx" class="lnk">Cancel</a>
            </div>
        </dl>
    </fieldset>
    
    <%}%> 
</asp:Content>
